# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corearchiver
pkgver=4.3.0
pkgrel=0
pkgdesc="Archiver from C-Suite to create and extract archives"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libarchive-qt-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corearchiver/-/archive/v$pkgver/corearchiver-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake ../$pkgname-v$pkgver \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	ninja
}

package() {
	DESTDIR="$pkgdir" ninja install
}

sha512sums="
8ed3b7b91ed68305c98d34426377788cc6e0d84e7599eb0008dcfb12b6887245d09ce39b6ca25a69bc9e92dae0f1b7452bea62f0373d156b07e433baf9532424  corearchiver-4.3.0.tar.gz
"
